import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register' //svg插件所需配置
import '@/styles/index.scss' //引入全局样式
import globalComponent from '@/components/index'
import router from './router'
import pinia from '@/store/index'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
import './permission'

// import SvgIcon from '@/components/SvgIcon/index.vue'
// app.component('SvgIcon',SvgIcon)
app.use(pinia)
app.use(globalComponent) //安装自定义插件
app.use(router)
app.mount('#app')
